from threading import *


class Thread(Thread):
    """
    重写线程类，以获取返回值
    """
    def __init__(self, func, args):
        super(Thread, self).__init__()
        self.func = func
        self.args = args
        self.result = None

    def run(self):
        self.result = self.func(*self.args)

    def get_result(self):
        return self.result